package dao;

import org.apache.ibatis.annotations.Param;
import pojo.Doctor;

import java.util.List;

public interface DoctorDao {
    int insertDoctor(Doctor doctor);

    int deleteDoctorById(String docId);

    int updateDoctor(Doctor doctor);

    Doctor selectDoctorById(String docId);

    Doctor selectDoctorByUsername(String username);

    List<Doctor> selectAllDoctors();
    List<Doctor> searchByName(@Param("docName") String docName);

}